<div class="container">
  <div class="row centre">

    <p >Url du service REST :</p>
    <input type="text" ng-model="url" /><br>
    <button class="btn btn-info" ng-click="rafraichir()">Se Connecter</button>
    <br>
    
    <div>url test : http://172.20.82.166:80/rest/arduinos/</div>
    
    <ANY ng-switch="indexReponse" ng-model="indexReponse">
    <ANY ng-switch-when="0"></ANY>
    <ANY ng-switch-when="1"><div class='glyphicon glyphicon-ok text-success'> Liste des arduinos connectées :</div></ANY>
    <ANY ng-switch-when="2"><div class='glyphicon glyphicon-remove text-danger'> Echec <br> {{info}}</div></ANY>
    <ANY ng-switch-when="3"><div class='glyphicon glyphicon-warning-sign text-warning'> Warning: {{info}}</div></ANY>
    <ANY ng-switch-default></ANY>
</ANY>
    <div class="well" ng-repeat="arduino in arduinos" ng-show="!isError">
      <span>{{arduino.id}} - {{arduino.ip}}</span>
    </div>
  </div>
</div>